<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>资源申请列表</title>
	<%@ include file="/WEB-INF/include/include.jsp" %>
	<script type="text/javascript" src="<%=path %>/js/rms/resapply/resapply.js"></script>
  </head>
  <body>
  		<div class="listpage-locked-content">
			<h2 class="listpage-lk-title" >项目资源申请</h2>
			<div class="listpage-lk-search" id="searchWrap" ></div>
			<div class="listpage-lk-tbar" id="tbarWrap"></div>
		</div>
		
		<div class="listpage-content">
			<div class="listpage-grid" id="gridWrap"></div>
		</div>
		
  </body>
</html>

<ui:page>


	<ui:quicksearch handler="" scope="ResApplyList" renderTo="searchWrap"></ui:quicksearch>
	<ui:b_toolbar menuCode="mnuResApply" id="toolbar" renderTo="tbarWrap" ></ui:b_toolbar>
	
	<ui:searchform id="resApplySearchForm">
		<x:items>
			<ui:formPanel.text id="stepName" fieldLabel="资源名称包含" config="true"></ui:formPanel.text>
			<ui:formPanel.text id="resName" fieldLabel="资源名称包含" config="true"></ui:formPanel.text>
			<ui:formPanel.comboxstatic id="stepstatus" fieldLabel="状态" data="[['0','新建'],['1','待审批'],['2','完成'],['3','未处理'],['4','已处理']]" config="true"></ui:formPanel.comboxstatic>
		</x:items>
	</ui:searchform>
	
	<ui:advSearchWindow searchFormId="resApplySearchForm" id="advSearchWin" 
		searchHandlerscope="ResApplyList" searchHandler="ResApplyList.advSearch" 
		height="240" width="300"/>	
	
  	<ui:model name="ResApplyGridModel">
  		 <x:attr name="fields" type="array">
  			<ui:model.field name="applyId"   ></ui:model.field>
  			<ui:model.field name="stepName"   ></ui:model.field>
  			<ui:model.field name="resName"   ></ui:model.field>
  			<ui:model.field name="startDate"   ></ui:model.field>
  			<ui:model.field name="endDate"  ></ui:model.field>
  			<ui:model.field name="stepType"  ></ui:model.field>
  			<ui:model.field name="startTime"  ></ui:model.field>
  			<ui:model.field name="endTime"  ></ui:model.field>
  			<ui:model.field name="stepstatus"   ></ui:model.field>
  		</x:attr>
  	</ui:model>
	
	
	
	<ui:grid id="resApplyGrid" showCheckbox="true" showPaging="false"
		datasetName="ResApplyDataSetHandler" 
		handlerName="ResApplyQueryHandler" 
		handlerMethod="queryGrid"
		model="ResApplyGridModel" renderTo="gridWrap"  >
		<x:columns>
			<ui:gridcolumn dataIndex="applyId"  text="applyId" hidden="true"  ></ui:gridcolumn>
			<ui:gridcolumn text="步骤名称" dataIndex="stepName"/>
			<ui:gridcolumn text="项目名称" dataIndex="resName"/>
			<ui:gridcolumn text="项目开始日期" dataIndex="startDate"/>
			<ui:gridcolumn text="项目结束日期" dataIndex="endDate"/>
			<ui:gridcolumn text="开始时间" dataIndex="startTime" width="130" />
			<ui:gridcolumn text="结束时间" dataIndex="endTime" width="130"  />
			<ui:gridcolumn text="当前状态" dataIndex="stepstatus" renderer="ResApplyList.renderStepStatus"/>
		</x:columns>
	</ui:grid>
</ui:page>

	
